package top.continew.admin.req.wecom;

import cn.shengchao.examstar.rpc.wecom.req.CustomerServiceGroupStateDto;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import top.continew.admin.system.util.ValidateGroup;

import java.io.Serializable;

/**
 * @program: examstar-manger-api
 * @description: 客服组禁用启用
 * @author: Xiong weiqiang
 * @create: 2025-04-09 16:43
 */
@Data
public class CustomerServiceGroupStateRto  implements Serializable {
    @NotNull(message = "客服组id不能为空",groups = {ValidateGroup.ReqGroup.SAVE.class, ValidateGroup.ReqGroup.UPDATE.class})
    private Long groupId;
    @NotNull(message = "状态不能为空",groups = {ValidateGroup.ReqGroup.SAVE.class, ValidateGroup.ReqGroup.UPDATE.class})
    private Integer enableStatus;

    public CustomerServiceGroupStateDto toDto() {
        CustomerServiceGroupStateDto dto = new CustomerServiceGroupStateDto();
        dto.setGroupId(this.groupId);
        dto.setEnableStatus(this.enableStatus);
        return dto;
    }
}